![]() |
KCChooseCertificate |
||||
Header: | Keychain.h | Carbon status: | Under Evaluation | |
Displays a list of certificates that the user can choose from.
OSStatus KCChooseCertificate ( CFArrayRef items, KCItemRef *certificate, CFArrayRef policyOIDs, KCVerifyStopOn stopOn );
An array of certificate references.
If the items array only contains one certificate, on return, a pointer to that certificate. In this case, no user interface is displayed.
An array of trust policy options used for Macintosh file signing. To obtain a pointer to this array, call the function SecMacGetDefaultPolicyOIDs.
The criteria to use in selecting the certificates to display. See
A result code. The result code userCanceledErr indicates that the user pressed the Cancel button in the user interface.
The KCChooseCertificate function displays a list of the certificates the user can choose from. If only one certificate matches the criteria, the reference is passed back in the certificate parameter and no user interface is presented.
Available beginning with Keychain 2.0.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)